﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Caixa" targetNamespace="http://tempuri.org/Caixa.xsd" xmlns:mstns="http://tempuri.org/Caixa.xsd" xmlns="http://tempuri.org/Caixa.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="sgiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="sgiConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.sgiConnectionString.ConnectionString" Provider="MySql.Data.MySqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ListaCaixaTableAdapter" GeneratorDataComponentClassName="ListaCaixaTableAdapter" Name="ListaCaixa" UserDataComponentName="ListaCaixaTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="sgiConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT empresa.idEmpresa, empresa.empresa, filial.idFilial, filial.filial, filial.matriz, caixa.idCaixa, caixa.caixa, caixatipo.caixaTipo, caixa.saldo, caixa.situacao, caixaturno.dtAbertura, 
                  pessoa.pessoa
FROM     caixaturno RIGHT OUTER JOIN
                  caixa INNER JOIN
                  filial ON caixa.idFilial = filial.idFilial INNER JOIN
                  empresa ON filial.idEmpresa = empresa.idEmpresa INNER JOIN
                  caixatipo ON caixa.idCaixatipo = caixatipo.idCaixaTipo AND filial.idFilial = caixatipo.idFilial ON caixaturno.idCaixa = caixa.idCaixa AND 
                  caixaturno.situacao = 'A' LEFT OUTER JOIN
                  colaborador LEFT OUTER JOIN
                  pessoa ON colaborador.idPessoa = pessoa.idPessoa ON caixaturno.idColaborador = colaborador.idColaborador</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="idEmpresa" DataSetColumn="idEmpresa" />
              <Mapping SourceColumn="empresa" DataSetColumn="empresa" />
              <Mapping SourceColumn="idFilial" DataSetColumn="idFilial" />
              <Mapping SourceColumn="filial" DataSetColumn="filial" />
              <Mapping SourceColumn="matriz" DataSetColumn="matriz" />
              <Mapping SourceColumn="idCaixa" DataSetColumn="idCaixa" />
              <Mapping SourceColumn="caixa" DataSetColumn="caixa" />
              <Mapping SourceColumn="caixaTipo" DataSetColumn="caixaTipo" />
              <Mapping SourceColumn="saldo" DataSetColumn="saldo" />
              <Mapping SourceColumn="situacao" DataSetColumn="situacao" />
              <Mapping SourceColumn="dtAbertura" DataSetColumn="dtAbertura" />
              <Mapping SourceColumn="pessoa" DataSetColumn="pessoa" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Caixa" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Caixa" msprop:Generator_UserDSName="Caixa">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ListaCaixa" msprop:Generator_TableClassName="ListaCaixaDataTable" msprop:Generator_TableVarName="tableListaCaixa" msprop:Generator_TablePropName="ListaCaixa" msprop:Generator_RowDeletingName="ListaCaixaRowDeleting" msprop:Generator_UserTableName="ListaCaixa" msprop:Generator_RowChangingName="ListaCaixaRowChanging" msprop:Generator_RowEvHandlerName="ListaCaixaRowChangeEventHandler" msprop:Generator_RowDeletedName="ListaCaixaRowDeleted" msprop:Generator_RowEvArgName="ListaCaixaRowChangeEvent" msprop:Generator_RowChangedName="ListaCaixaRowChanged" msprop:Generator_RowClassName="ListaCaixaRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="idEmpresa" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidEmpresa" msprop:Generator_ColumnPropNameInRow="idEmpresa" msprop:Generator_ColumnPropNameInTable="idEmpresaColumn" msprop:Generator_UserColumnName="idEmpresa" type="xs:int" />
              <xs:element name="empresa" msprop:Generator_ColumnVarNameInTable="columnempresa" msprop:Generator_ColumnPropNameInRow="empresa" msprop:Generator_ColumnPropNameInTable="empresaColumn" msprop:Generator_UserColumnName="empresa">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="idFilial" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidFilial" msprop:Generator_ColumnPropNameInRow="idFilial" msprop:Generator_ColumnPropNameInTable="idFilialColumn" msprop:Generator_UserColumnName="idFilial" type="xs:int" />
              <xs:element name="filial" msprop:Generator_ColumnVarNameInTable="columnfilial" msprop:Generator_ColumnPropNameInRow="filial" msprop:Generator_ColumnPropNameInTable="filialColumn" msprop:Generator_UserColumnName="filial">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="matriz" msprop:Generator_ColumnVarNameInTable="columnmatriz" msprop:Generator_ColumnPropNameInRow="matriz" msprop:Generator_ColumnPropNameInTable="matrizColumn" msprop:Generator_UserColumnName="matriz">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="idCaixa" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidCaixa" msprop:Generator_ColumnPropNameInRow="idCaixa" msprop:Generator_ColumnPropNameInTable="idCaixaColumn" msprop:Generator_UserColumnName="idCaixa" type="xs:int" />
              <xs:element name="caixa" msprop:Generator_ColumnVarNameInTable="columncaixa" msprop:Generator_ColumnPropNameInRow="caixa" msprop:Generator_ColumnPropNameInTable="caixaColumn" msprop:Generator_UserColumnName="caixa">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="caixaTipo" msprop:Generator_ColumnVarNameInTable="columncaixaTipo" msprop:Generator_ColumnPropNameInRow="caixaTipo" msprop:Generator_ColumnPropNameInTable="caixaTipoColumn" msprop:Generator_UserColumnName="caixaTipo">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="saldo" msprop:Generator_ColumnVarNameInTable="columnsaldo" msprop:Generator_ColumnPropNameInRow="saldo" msprop:Generator_ColumnPropNameInTable="saldoColumn" msprop:Generator_UserColumnName="saldo" type="xs:decimal" />
              <xs:element name="situacao" msprop:Generator_ColumnVarNameInTable="columnsituacao" msprop:Generator_ColumnPropNameInRow="situacao" msprop:Generator_ColumnPropNameInTable="situacaoColumn" msprop:Generator_UserColumnName="situacao">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dtAbertura" msprop:Generator_ColumnVarNameInTable="columndtAbertura" msprop:Generator_ColumnPropNameInRow="dtAbertura" msprop:Generator_ColumnPropNameInTable="dtAberturaColumn" msprop:Generator_UserColumnName="dtAbertura" type="xs:dateTime" minOccurs="0" />
              <xs:element name="pessoa" msprop:Generator_ColumnVarNameInTable="columnpessoa" msprop:Generator_ColumnPropNameInRow="pessoa" msprop:Generator_ColumnPropNameInTable="pessoaColumn" msprop:Generator_UserColumnName="pessoa" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="60" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ListaCaixa" />
      <xs:field xpath="mstns:idEmpresa" />
      <xs:field xpath="mstns:idFilial" />
      <xs:field xpath="mstns:idCaixa" />
    </xs:unique>
  </xs:element>
</xs:schema>